/*
 * Copyright (C) 2010 M. Hautle.
 * 
 * This file is part of TrackedBean.
 * 
 * TrackedBean is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * TrackedBean is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with TrackedBean. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.trackedbean.tracking.data;

import java.util.*;
import ch.trackedbean.tracking.*;

/**
 * Tree root holding {@link CycleChild}s.
 * 
 * @author M. Hautle
 * @since 11.02.2011
 */
public class CycleRoot implements TrackedBean {
    /** Property constant for {@link #getName()}/{@link #setName(String)}. Type {@link String}. */
    public static final String ATTR_NAME = "name";

    /** Property constant for {@link #getChildren()}/{@link #setChildren(List)}. Type {@link CycleChild}. */
    public static final String ATTR_CHILDREN = "children";

    /** The children. */
    private List<CycleChild> children;

    /** The name. */
    private String name;

    /**
     * @return Returns the children.
     */
    public List<CycleChild> getChildren() {
        return children;
    }

    /**
     * @param children The children to set.
     */
    public void setChildren(List<CycleChild> children) {
        this.children = children;
    }

    /**
     * @return Returns the name.
     */
    public String getName() {
        return name;
    }

    /**
     * @param name The name to set.
     */
    public void setName(String name) {
        this.name = name;
    }
}
